Sysprep message "Sysprep was not able to validate your windows installation"

Our organization has recently received a number of Tablet devices (over 100) which we require a standardized image to be deployed to them all, the obvious thing to this was to create a standard image using sysprep however when i run sysprep I get the message 'Sysprep was not able to validate your windows installation' and to check the logs when i check the logs i find a message saying 'sysprep will not run on an upgrade OS' I have recently updated to windows 8.1.

I have found an article relating to windows 7 which suggested deleting the 'upgrade' key from the registry however this solution has not worked for windows 8.1

Can someone help? I do not have the time nor patience to have to start the image from scratch.

Thanks

Kev.

October 23rd, 2013 12:29pm

Hi,

Sysprep must not be used on upgrade installation types. Run Sysprep only on clean installations.

For more information, please refer to this article:

http://technet.microsoft.com/en-us/library/cc721940(v=ws.10).aspx

Best regards,

Karen Hu

Free Windows Admin Tool Kit Click here and download it now
October 24th, 2013 11:27am

Hi Karen,

Thanks for this information I presume then that 8.1 is considered to be an upgrade rather than a service pack. Is there any way around this as our devices have been shipped with Windows 8 and I would rather deploy then with 8.1 than have to then deploy 8.1 afterwards? I assume its not a recommended process to create an image without using sysprep!

Kev.

October 24th, 2013 4:14pm

Hi,

Sysprep must not be used on upgrade installation types. Run Sysprep only on clean installations.


I am having the same problem, (except they are 20x Asus P550C i5 Laptops)

I have a clean install, then i have done all the MS updates and the 3.5GB to W8.1  for free the only way that it could be done (via the windows Store) installed all the required programs, setup security and user accounts, (teacher and student) as these computers are standalone for a training company that travels to remote locations in Australia to teach students how to use windows 8 and office 2013.

Now i am also having this same problem, i have been working on a work-around for hours.

Can you please tell us what is going to be the solution?? 

Please get back to me Asap

Free Windows Admin Tool Kit Click here and download it now
October 25th, 2013 2:38pm

Did anyone get answer for this??
November 1st, 2013 2:28am

install 8.1 from a clean MSDN/Technet ISO, install all tool and now sysprep it.
Free Windows Admin Tool Kit Click here and download it now
November 1st, 2013 9:36am

I had a Windows 8.0 Enterprise custom image that after installing the upgrade to 8.1 from the Enterprise VLSC ISO would fail a sysprep with this error. After digging around the solution that worked for me was to remove the registry key 'Upgrade' within 'HKEY_LOCAL_MACHINE\system\setup'. Delete this key and then re-run sysprep, I have always ran from the command line.

I have since deployed the captured image and all appears to have ran ok.

  • Proposed as answer by Ivan Corbett Tuesday, August 12, 2014 2:38 PM
November 5th, 2013 11:23am

I had a Windows 8.0 Enterprise custom image that after installing the upgrade to 8.1 from the Enterprise VLSC ISO would fail a sysprep with this error. After digging around the solution that worked for me was to remove the registry key 'Upgrade' within 'HKEY_LOCAL_MACHINE\system\setup'. Delete this key and then re-run sysprep, I have always ran from the command line.

I have since deployed the captured image and all appears to have ran ok.

  • Proposed as answer by Ivan Corbett Tuesday, August 12, 2014 2:38 PM
Free Windows Admin Tool Kit Click here and download it now
November 5th, 2013 2:23pm

There have been situations, in which the key setup was not present.

Following solution found on another website seems to work:

Remove this KEY from the registry (if existent):
Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Upgrade
Remove this REG_DWORD from the registry (if existent):
Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Upgrade
Set this REG_DWORD in the registry:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\CleanupState [Set Hexadecimal Value:7]
Run this command as Administrator:
slmgr /dli

As always with such tips be aware, that this method is not supported by Microsoft and unknown side effects may show up in a later stage of deployment.

Active Bitlocker encryption may also be a reason for this error message.

Best greetings from Germany
Olaf


July 25th, 2014 11:53am

There have been situations, in which the key setup was not present.

Following solution found on another website seems to work:

Remove this KEY from the registry (if existent):
Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Upgrade
Remove this REG_DWORD from the registry (if existent):
Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Upgrade
Set this REG_DWORD in the registry:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\CleanupState [Set Hexadecimal Value:7]
Run this command as Administrator:
slmgr /dli

As always with such tips be aware, that this method is not supported by Microsoft and unknown side effects may show up in a later stage of deployment.

Active Bitlocker encryption may also be a reason for this error message.

Best greetings from Germany
Olaf


Free Windows Admin Tool Kit Click here and download it now
July 25th, 2014 2:53pm

Danke schn, Olaf.

That worked perfectly for me.

A post-clone sysprep (not an upgraded Windows install) failed partway through, and this allowed me to restart.

February 5th, 2015 8:12pm

Had problems with an upgraded Windows 10 Technical preview build 10122 (from 10074) Enterprise.

Followed Olaf's instructions:

Remove this KEY from the registry (if existent):
Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Upgrade
Remove this REG_DWORD from the registry (if existent):
Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Upgrade
Set this REG_DWORD in the registry:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\CleanupState [Set Hexadecimal Value:7]
Run this command as Administrator:
slmgr /dli

But also had to empty the value of "ImagePath" under :

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tiledatamodelsvc

and:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\StateRepository

reboot the computer and do a Sysprep &shutdown.

then offline edit the registry and restore the value "%systemroot%\system32\svchost.exe -k Appmodel" (without quotes) to "ImagePath" under tiledatamodelsvcand StateRepository.

When offline editing they will be under ControlSet001\Services.

Finally you'll have your sysprepped image.

sources:

prevent staterepository and tiledatamodelsvc from running....

Sysprep Windows 10 Build 10074 Fix

Fatal error when Sysprep 10074


  • Edited by Alon.or 18 hours 48 minutes ago fix link
Free Windows Admin Tool Kit Click here and download it now
May 27th, 2015 8:36am

Had problems with an upgraded Windows 10 Technical preview build 10122 (from 10074) Enterprise.

Followed Olaf's instructions:

Remove this KEY from the registry (if existent):
Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Upgrade
Remove this REG_DWORD from the registry (if existent):
Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Upgrade
Set this REG_DWORD in the registry:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\CleanupState [Set Hexadecimal Value:7]
Run this command as Administrator:
slmgr /dli

But also had to empty the value of "ImagePath" under :

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tiledatamodelsvc

and:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\StateRepository

reboot the computer and do a Sysprep &shutdown.

then offline edit the registry and restore the value "%systemroot%\system32\svchost.exe -k Appmodel" (without quotes) to "ImagePath" under tiledatamodelsvcand StateRepository.

When offline editing they will be under ControlSet001\Services.

Finally you'll have your sysprepped image.

sources:

prevent staterepository and tiledatamodelsvc from running....

Sysprep Windows 10 Build 10074 Fix

Fatal error when Sysprep 10074


  • Edited by Alon.or Wednesday, May 27, 2015 12:36 PM fix link
May 27th, 2015 12:35pm

Had problems with an upgraded Windows 10 Technical preview build 10122 (from 10074) Enterprise.

Followed Olaf's instructions:

Remove this KEY from the registry (if existent):
Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Upgrade
Remove this REG_DWORD from the registry (if existent):
Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Upgrade
Set this REG_DWORD in the registry:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\CleanupState [Set Hexadecimal Value:7]
Run this command as Administrator:
slmgr /dli

But also had to empty the value of "ImagePath" under :

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tiledatamodelsvc

and:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\StateRepository

reboot the computer and do a Sysprep &shutdown.

then offline edit the registry and restore the value "%systemroot%\system32\svchost.exe -k Appmodel" (without quotes) to "ImagePath" under tiledatamodelsvcand StateRepository.

When offline editing they will be under ControlSet001\Services.

Finally you'll have your sysprepped image.

sources:

prevent staterepository and tiledatamodelsvc from running....

Sysprep Windows 10 Build 10074 Fix

Fatal error when Sysprep 10074


  • Edited by Alon.or Wednesday, May 27, 2015 12:36 PM fix link
Free Windows Admin Tool Kit Click here and download it now
May 27th, 2015 12:35pm

Hello,

I have same issue, but on Windows 10 Pro build 10240.

Your description above isn't functional.

Have you any advice if you look in to log bellow?

Thanks

2015-07-22 14:22:14, Info                  SYSPRP ========================================================
2015-07-22 14:22:14, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
2015-07-22 14:22:14, Info                  SYSPRP ========================================================
2015-07-22 14:22:14, Info       [0x0f004d] SYSPRP The time is now 2015-07-22 14:22:14
2015-07-22 14:22:14, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
2015-07-22 14:22:14, Info       [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
2015-07-22 14:22:14, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2015-07-22 14:22:14, Info       [0x0f003d] SYSPRP WinMain:Displaying dialog box for user to choose sysprep mode...
2015-07-22 14:22:20, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
2015-07-22 14:22:20, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3
2015-07-22 14:22:20, Info       [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
2015-07-22 14:22:20, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
2015-07-22 14:22:20, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2015-07-22 14:22:20, Info                  SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2015-07-22 14:22:20, Warning               SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
2015-07-22 14:22:20, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2015-07-22 14:22:20, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2015-07-22 14:22:20, Info                  SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2015-07-22 14:22:20, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2015-07-22 14:22:20, Info       [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'Sysprep_Clean_Validate_Opk' in C:\Windows\System32\spopk.dll; executing it
2015-07-22 14:22:20, Info       [0x0f0081] SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll without error
2015-07-22 14:22:20, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'generalize' internal providers.
2015-07-22 14:22:20, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 1
2015-07-22 14:22:20, Info       [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null>
2015-07-22 14:22:20, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
2015-07-22 14:22:20, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2015-07-22 14:22:20, Info                  SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2015-07-22 14:22:20, Warning               SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
2015-07-22 14:22:20, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2015-07-22 14:22:20, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2015-07-22 14:22:20, Info                  SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2015-07-22 14:22:20, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2015-07-22 14:22:20, Info       [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'SysprepGeneralizeValidate' in C:\Windows\System32\AppxSysprep.dll; executing it
2015-07-22 14:22:20, Info                  SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned.

2015-07-22 14:22:20, Error                 SYSPRP Package Microsoft.VCLibs.120.00_12.0.21005.1_x86__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

2015-07-22 14:22:20, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.

2015-07-22 14:22:20, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

2015-07-22 14:22:20, Error      [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2015-07-22 14:22:20, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2015-07-22 14:22:20, Error                 SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x3cf2
2015-07-22 14:22:20, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2015-07-22 14:22:20, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
2015-07-22 14:22:22, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
2015-07-22 14:22:22, Info       [0x0f004d] SYSPRP The time is now 2015-07-22 14:22:22

July 22nd, 2015 8:42am

Having the exact issue with Windows 10 MSDN copy. Editing the registry keys did not resolve the issue

Free Windows Admin Tool Kit Click here and download it now
July 30th, 2015 6:43pm

I had the same problem with msdn version and the solution here

(not the same package)

http://deploymentresearch.com/Research/Post/450/Sysprep-broken-in-Windows-10-Build-9926


  • Edited by jbul777 8 hours 31 minutes ago
August 2nd, 2015 6:54pm

I had the same problem with msdn version and the solution here

(not the same package)

http://deploymentresearch.com/Research/Post/450/Sysprep-broken-in-Windows-10-Build-9926


  • Edited by jbul777 Sunday, August 02, 2015 10:53 PM
Free Windows Admin Tool Kit Click here and download it now
August 2nd, 2015 10:52pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics